<template>
  <el-container class="container">
    <!-- 头部区域 -->
    <el-header>
      <div>
        <span>在线海洋监测数据可视化信息管理系统---化验员</span>
      </div>
      <!-- <el-button type="info" @click="logout">退出</el-button> -->
    </el-header>
    <!-- 页面主体区域 -->
    <el-container>
      <el-aside width="200px"
        ><el-menu
          background-color="#373d41"
          text-color="#fff"
          active-text-color="#409eff"
          :router="true"
          :default-active="this.$route.path"
        >
          <el-menu-item index="/assayer/home">
            <template slot="title">
              <i class="el-icon-menu"></i>
              <span>首页</span>
            </template>
          </el-menu-item>
          <el-menu-item index="/assayer/PhyChem">
            <template slot="title">
              <i class="el-icon-cpu"></i>
              <span>理化分析指标</span>
            </template>
          </el-menu-item>
          <el-menu-item index="/assayer/metal">
            <template slot="title">
              <i class="el-icon-attract"></i>
              <span>金属分析指标</span>
            </template>
          </el-menu-item>
          <el-menu-item index="/assayer/organic">
            <template slot="title">
              <i class="el-icon-orange"></i>
              <span>有机分析指标</span>
            </template>
          </el-menu-item>
        </el-menu>
      </el-aside>
      <el-main
        ><!-- 路由占位符 -->
        <router-view></router-view
      ></el-main>
    </el-container>
  </el-container>
</template>
<script>
export default {
  data() {
    return {};
  },
  mounted() {},
  computed: {},
  methods: {},
};
</script>
<style scoped>
.container {
  height: 100vh;
}
.el-header {
  position: fixed;
  width: 100vw;
  z-index: 10;
  background-color: #373d41;
  box-shadow: 0px 15px 10px -15px #373d41af;
  line-height: 70px;
  color: #fff;
  font-size: 28px;
  font-weight: bold;
  height: 70px !important;
}

.el-aside {
  position: fixed;
  height: 100vh;
  top: 70px;
  z-index: 10;
  background-color: #373d41;
  box-shadow: 15px 0px 10px -15px #373d41af;
}

.el-main {
  margin-top: 70px;
  margin-left: 200px;
  background-color: #eaedf1;
}
.el-menu {
  width: 200px;
}
</style>
